package com.base.conf;

import org.sitemesh.builder.SiteMeshFilterBuilder;
import org.sitemesh.config.ConfigurableSiteMeshFilter;

public class WebSiteMeshFilter extends ConfigurableSiteMeshFilter {
    
    @Override
    protected void applyCustomConfiguration(SiteMeshFilterBuilder builder) {
        builder.addDecoratorPath("/**", "/pages/decorators/default.html")
                .addExcludedPath("/js/*")
                .addExcludedPath("/plugins/*")
                .addExcludedPath("/css/*")
                .addExcludedPath("/images/**")
                .addExcludedPath("/login/*")
                .addExcludedPath("/logout")
                .addExcludedPath("/swagger-ui.html");
    }
}
